package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    Integer id;//	bigint	id	主键
    Integer uId;//	bigint;	//评论人id	外键
    Integer postId;    //bigint 帖子id	外键
    Integer p_id;//bigint	父评论的id
    String commentContent;    //varchat(200)	评论内容
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    LocalDateTime createTime;    //datetime	创建时间
    LocalDateTime updateTime;    //datetime	修改时间
}
